﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

/****************************************************************
*   类名：ModelParamerters
*   命名空间：CommonModule
*   作者：X
*   CLR版本：4.0.30319.42000
*   创建时间：2022/3/15 10:38:05
*   描述说明：
*   修改历史：
*****************************************************************/
namespace CommonModule
{
    public class CreateModelParamerters
    {
        private double angleMin;
        private double angleMax;
        private PolarityEnum polarity;
        private double contrast;
        private double contrastMin;
        /// <summary>
        /// 输入角度，会自动转换成弧度
        /// </summary>
        public double AngleMin { get => angleMin; set => angleMin = value * Math.PI / 180; }
        public double AngleMax { get => angleMax; set => angleMax = value * Math.PI / 180; }
        public PolarityEnum Polarity { get => polarity; set => polarity = value; }
        /// <summary>
        /// 对比度
        /// </summary>
        public double Contrast { get => contrast; set => contrast = value; }
        /// <summary>
        /// 实例与模板的对比度最小差值
        /// </summary>
        public double ContrastMin { get => contrastMin; set => contrastMin = value; }
        /// <summary>
        /// 模板极性
        /// </summary>
       
    }
    public enum PolarityEnum
    {
        use_polarity,
        ignore_color_polarity,
        ignore_global_polarity,
        ignore_local_polarity
    }
}
